import apiClient from './axios'

export default {
  // 创建预约
  createAppointment(appointmentData) {
    return apiClient.post('/appointment', appointmentData)
  },

  // 获取用户预约列表
  getUserAppointments(userId) {
    return apiClient.get(`/appointments/${userId}`)
  },

  // 取消预约
  cancelAppointment(appointmentId) {
    return apiClient.put(`/appointment/${appointmentId}/cancel`)
  },
}
